package pri.zjy.matrix;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zhangjy
 * @description 旋转图像
 * @date 2025/3/11 21:04
 */
public class Rotate_48 {

    public static void main(String[] args) {
        // TODO 旋转图像待完善
    }

    public void rotate(int[][] matrix) {
        int rows = matrix.length;
        int cols = matrix[0].length;
        // key=原位置行-列下标，val=值
        Map<String, Integer> map = new HashMap<>();
        int k = 1;
        while (k <= rows - 2) {
            boolean rgiht = true;
            boolean down = true;
            boolean left = true;
            boolean up = true;
            for (int i = 0; i < rows; rows++)  {
                for (int j = 0; j < cols; cols++)  {
                    // 移动前先记录，移到的新位置下标和元素值
                    String key;
                    if (rgiht) {
                        key = (rows - i - k) + "-" + (cols - 1 - j - k);
                    } else if (down) {

                    } else if (left) {

                    } else if (up) {

                    }
                }

//                map.put()
            }
        }

    }

}
